package com.ptu.ws.service;

import com.ptu.entity.ChatMessage;
import java.util.List;

public interface ChatMessageService {
    // 保存消息
    void saveMessage(ChatMessage message);

    // 获取用户间的历史消息
    List<ChatMessage> getMessagesBetweenUsers(String sender, String receiver, Integer limit);
    
    // 获取指定会话的历史消息
    List<ChatMessage> getMessagesBySessionId(String sessionId);

} 